Apparatus for preventing capacitor charger from overcharging and method thereof

ABSTRACT

The present invention provides an apparatus for controlling a capacitor charging circuit and a method thereof. The apparatus includes a first comparator, a second comparator, and a controller. The first comparator, which is coupled to the charging circuit, receives a voltage level and compares the voltage level with a reference voltage level to generate a first indication signal. The voltage level corresponds to an output voltage of the charging circuit. The second comparator receives a control value and compares the control value with a threshold value to generate a second indication signal. The controller, which is coupled to the charging circuit, the first comparator and the second comparator, generates a control signal according to the first indication signal and the second indication signal to turn the charging circuit on and off, and further generates the control value according to the control signal.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a charger, in particular, an apparatus which prevents a charger from overcharging a capacitor.

2. Description of the Prior Art

Please refer to FIG. 1. FIG. 1 shows a prior art charger 100. The charger 100 includes a charging circuit 110, a voltage divider 120, a capacitor 130, a comparator 140, and a controller 150. The voltage divider 120 is not restricted to connect to the cathode of the rectifying diode 118, but could connect to the anode of the rectifying diode. The charging circuit 110 contains a transformer 112, which receives an input voltage V_(in). A low level input voltage V_(in) is stepped up to a high level voltage by the transformer 112, and the high voltage passes through the rectifying diode 118 to charge the capacitor 130. The voltage at the terminal of the capacitor 130 is used as the output voltage for the charger 100. The on/off state of the transformer 112 is controlled by a MOSFET 116, which is driven by a driver 114. The driver 114 receives a control signal from the controller 150 and provides the MOSFET 116 with a driving voltage. The charging circuit 110 is of a Flyback configuration. The voltage divider 120 includes two resistors R₁ and R₂ connected in series. The voltage drop on the resistor R₂ is a fraction of the output voltage V_(out), and is regarded as a feedback voltage V_(FB). The feedback voltage V_(FB) is compared with a predetermined reference voltage V_(ref) by the comparator 140. The controller 150 generates the control signal based on the result given by the comparator 140.

The example below further illustrates the functions of the charger 100. For the flash operation of a camera, an input voltage of 3V is transformed into a high voltage to charge the capacitor 130. Since the flash requires a driving voltage as high as 300V, the target voltage of the capacitor 130 is set to 300V. The ratio of R₂/R₁ is set to 1/299, and the reference voltage V_(ref) is set to 1V. After receiving an enable signal, the controller 150 sends the control signal to the driver 114, and the charging circuit 110 starts charging the capacitor 130. As the voltage of the capacitor 130 increases and moves towards the target voltage of 300V, the feedback voltage V_(FB) moves towards a voltage of 1V, which is equal to the reference voltage V_(ref). When the voltage of the capacitor 130 is charged to 300V, the feedback voltage V_(FB) is therefore equal to 300×[1/(1+299)]=1V. Once the feedback voltage V_(FB) reaches the reference voltage V_(ref), the comparator 140 sends an indication signal to the controller 150. As soon as the indication signal is received, the controller 150 sends the control signal to stop the driver 114 and turn off the charging circuit 110. A ready signal indicating the full charge of the capacitor 130 is also sent out. As a result, the capacitor 130 can be carefully charged to capacity. However, if the resistor R₁ is open-circuited or the resistor R₂ is shorted, the controller 150 will never receive the indication signal from the comparator 140 because the feedback voltage V_(FB) will never reach 1V. Therefore, the capacitor 130 will be overcharged and may face potential risks of high voltage damage to other components.

SUMMARY OF THE INVENTION

One objective of the claimed invention is to therefore provide an apparatus for controlling a charging circuit and a method to solve the above-mentioned problems.

According to an embodiment of the claimed invention, an apparatus for controlling a charging circuit is disclosed. The apparatus includes a first comparator, a second comparator, and a controller. The first comparator, which is coupled to the charging circuit, receives a voltage level and compares the voltage level with a reference voltage level to generate a first indication signal. The voltage level corresponds to an output voltage of the charging circuit. The second comparator receives a control value and compares the control value with a threshold value to generate a second indication signal. The controller, which is coupled to the charging circuit, the first comparator and the second comparator, generates a control signal according to the first indication signal and the second indication signal to turn the charging circuit on and off, and further generates the control value according to the control signal.

According to an embodiment of the claimed invention, a method for controlling a charging circuit is disclosed. The method includes: comparing a voltage level with a reference voltage level to generate a first indication signal; comparing a control value with a threshold value to generate a second indication signal; and generating a control signal according to the first indication signal and the second indication signal for turning the charging circuit on and off; and generating the control value according to the control signal. The voltage level corresponds to an output voltage of the charging circuit.

According to an embodiment of the claimed invention, an apparatus for controlling a charging circuit is disclosed. The apparatus includes a first detector, a second detector, and a controller. The first detector, which is coupled to the charging circuit, detects a voltage level at a first time and generates a first indication value corresponding to the voltage level at the first time. The voltage level corresponds to an output voltage of the charging circuit. The second detector, which is coupled to the charging circuit, detects the voltage level at a second time behind the first time and generates a second indication value corresponding to the voltage level at the second time. The controller, which is coupled to the charging circuit, the first detector, and the second detector, receives the first and second indication values, and generates a control signal according to the first and second indication values for turning the charging circuit on and off.

According to an embodiment of the claimed invention, a method for controlling a charging circuit is disclosed. The method includes: detecting a voltage level at a first time and generating a first indication value corresponding to the voltage level at the first time; detecting the voltage level at a second time behind the first time and generating a second indication value corresponding to the voltage level at the second time; and generating a control signal according to the first and second indication values for turning the charging circuit on and off. The voltage level corresponds to an output voltage of the charging circuit.

These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a charger according to the prior art.

FIG. 2 shows a charger according to a first embodiment of the present invention.

FIG. 3 shows a waveform of the control signal within one period (T).

FIG. 4 shows a charger according to a second embodiment of the present invention.

FIG. 5 shows waveforms of the output voltage V_(out) and enable and ready signals during charging.

DETAILED DESCRIPTION

Please refer to FIG. 2. FIG. 2 shows a charger 200 according to a first embodiment of the present invention. The charger 200 includes a charging circuit 110, a voltage divider 120, a capacitor 130, a first comparator 140, a controller 210, a second comparator 220, and a third comparator 230. The charging circuit 110, the voltage divider 120, the capacitor 130, and the first comparator 140 are functionally identical to those components corresponding to the same schematic symbol as shown in FIG. 1. The comparators 220 and 230 can be implemented through operational amplifiers. In this embodiment, the controller 210 not only generates a control signal to control the charging circuit 110, but also provides a control value D_(M). The control value D_(M) is generated by monitoring the duty cycle of the control signal. The second comparator 220 compares the control value D_(M) with a predetermined threshold value D_(S), and generates a corresponding indication signal S₂. The third comparator 230 compares the feedback voltage V_(FB) with a predetermined threshold voltage level V_(S) and generates a corresponding indication signal S₃. The controller 210 sends out the control signal to control the charging circuit 110, according to indication signals S₁, S₂, and S₃. The indication signal S₁ is generated by the first comparator 140.

The function of the controller 210 is described below. Because the charger 200 is of a Flyback configuration, the time-average voltage of the transformer 112 within an entire period is equal to zero when under a stable operating condition. Please refer to FIG. 3. FIG. 3 shows a waveform of the control signal within one period (T). The output voltage V_(out) and the input voltage V_(in) satisfy Eq(1). $\begin{matrix} {{{\left( \frac{V_{out} + V_{d\quad 1}}{N} \right) \times T_{off}} = {V_{in} \times T_{on}}},} & {{Eq}.\quad(1)} \\ {{DutyCycle} = \frac{Ton}{{Ton} + {Toff}}} & {{Eq}.\quad(2)} \end{matrix}$

where V_(d1) is the voltage drop on the rectifying diode 118, N is the transformer turn ratio (N=Ns/Np, Ns: Secondary turns, Np: Primary turns), and T_(on) and T_(off) are the respective on time and off time of the control signal within one period. V_(d1) is about 0.5V˜1V and is usually neglected. From Eq. (1) and Eq. (2), it is obvious that the higher the output voltage V_(out), the higher the duty cycle of the control signal. Moreover, in FIG. 3 the product of the on time T_(on) and the voltage V_(in), i.e. the area A1, must be equal to product of the off time T_(off) and the voltage (V_(out)+V_(d1))/N, i.e. the area A2. Assuming that N=20, V_(in)=3V, T_(on)=3.3 μs, when the output voltage V_(out) is charged to an amount of 100V, the off time T_(off) is equal to 1.98 μs. This implies that the duty cycle (i.e., the control value D_(M)) of the control signal is equal to 62.5%. If the control value D_(M) is equal to 62.5%, the feedback voltage V_(FB) should be 100×[1/(1+299)]=0.333V with the ratio of R₂/R₁ equal to 1/299. Consequently, the threshold voltage level V_(S) is set to 0.333V. Therefore, when the indication signal S₂ generated by the second comparator 220 indicating that the control value D_(M) has reached the threshold value D_(S), and the indication signal S₃ generated by the third comparator 230 indicating that the feedback voltage V_(FB) has not reached the threshold voltage level V_(S), the controller 210 will send the control signal to disable the charging circuit 110. However, sometimes the input voltage V_(in) is smaller than its normal voltage level, and hence the threshold voltage level V_(S) should be modified. The threshold voltage level V_(S) should obey the following equation. $\begin{matrix} {{V_{S} < {\left( \frac{R_{2}}{R_{1} + R_{2}} \right) \times N \times {V_{in}\left( \min \right)} \times \left( \frac{D_{S}}{1 - D_{S}} \right)}},} & {{Eq}.\quad(3)} \end{matrix}$

where V_(in)(min) is the possible minimum voltage of the input voltage V_(in). If the V_(in)(min) is equal to 1.8V, and the threshold value D_(S) is set to be 62.5%, then V_(S) should be set to smaller than 0.2V. A reasonable value of 0.075V is selected as the threshold voltage level V_(S). As described in this example, once the control value D_(M) reaches the threshold value D_(S) (62.5% in this example) while the feedback voltage V_(FB) is still smaller than the threshold voltage level V_(S) (0.075V in this example), operation of the voltage divider 120 is regarded as abnormal, and the charging circuit 110 is disabled. Consequently, by monitoring the feedback voltage V_(FB) and the duty cycle D_(M) of the control signal, the capacitor 130 can avoid being overcharged if R₁ is open-circuited, or R₂ is shorted, or even both.

Please refer to FIG. 4. FIG. 4 shows a charger 400 according to a second embodiment of the present invention. In addition to having a charging circuit 110, a voltage divider 120, a capacitor 130, and a comparator 140, which are all functionally similar to those components having the same schematic symbol in FIG. 1, the charger 400 includes a controller 410, a first detector 420, and a second detector 430. Please refer to FIG. 5. FIG. 5 shows a waveform plot of the output voltage V_(out), and the enable and ready signals during charging. At time t1, when the enable signal (dashed line) received by controller 410 rises up, the charging circuit 110 will be turned on by the control signal output from the controller 410. The output voltage V_(out) (thin solid line) will then start increasing. At time t2, when the output voltage V_(out) reaches a target level, the ready signal (thick solid line) goes from a low logic level to a high logic level, and the controller 410 sends out the control signal to disable the charging circuit 110 according to the indication signal S₁ generated by the comparator 140.

From inspection of the output voltage V_(out), it is obvious that the curve is a monotonic increasing curve, meaning that if the output voltage V_(out) is sampled, a latter-sampled value is definitely larger than a previously-sampled value. According to this characteristic, an abnormal charging process can be detected by monitoring the output voltage V_(out). Referring back to FIG. 4, the feedback voltage V_(FB) is fed into the first detector 420 and the second detector 430. The first detector 420 detects the feedback voltage V_(FB) at a first time and generates a first indication value. The first indication value represents the detected feedback voltage V_(FB) at the first time. Afterwards, The second detector 430 detects the feedback voltage V_(FB) at a second time, which is behind the first time, and generates a second indication value. The second indication value represents the detected feedback voltage V_(FB) at the second time. The first indication value and the second indication value are sent to the controller 410. The controller 410 then compares these two indication values and generates the control signal accordingly. According to the characteristic of the output voltage V_(out), the second indication value is typically larger than the first indication value. Therefore, if the second indication value is smaller than the first indication value, the controller 410 sends a control signal to disable the charging circuit 110. Consequently, by detecting and comparing the feedback voltage V_(FB), the capacitor 130 can avoid overcharging if R₁ is open-circuited, or R₂ is shorted, or even both.

Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims. 

1. An apparatus for controlling a charging circuit, the apparatus comprising: a first comparator, coupled to the charging circuit, for receiving a voltage level and comparing the voltage level with a reference voltage level to generate a first indication signal, wherein the voltage level corresponds to an output voltage of the charging circuit; a second comparator, for receiving a control value and comparing the control value with a threshold value to generate a second indication signal; and a controller, coupled to the charging circuit, the first comparator, and the second comparator, the controller for generating a control signal according to the first indication signal and the second indication signal for turning the charging circuit on and off, and further for generating the control value according to the control signal.
 2. The apparatus of claim 1, wherein the controller monitors a duty cycle of the control signal to generate the control value.
 3. The apparatus of claim 2, wherein the reference voltage level is set according to the output voltage of the charging circuit, the charging circuit controlled by the control signal having the duty cycle equal to the threshold value.
 4. The apparatus of claim 1, wherein the first and second comparators are implemented by operational amplifiers.
 5. The apparatus of claim 1, wherein the controller generates the control signal to disable the charging circuit when the first indication signal indicates that the voltage level has not reached the reference voltage level and the second indication signal indicates that the control value has reached the threshold value.
 6. The apparatus of claim 1, wherein the charging circuit has a Flyback configuration.
 7. A method for controlling a charging circuit, the method comprising: comparing a voltage level with a reference voltage level to generate a first indication signal, wherein the voltage level corresponds to an output voltage of the charging circuit; comparing a control value with a threshold value to generate a second indication signal; generating a control signal according to the first indication signal and the second indication signal, the control signal for turning the charging circuit on and off; and generating the control value according to the control signal.
 8. The method of claim 7, wherein the control value is generated by monitoring a duty cycle of the control signal.
 9. The method of claim 8, wherein the reference voltage level is set according to the output voltage of the charging circuit, the charging circuit controlled by the control signal having the duty cycle equal to the threshold value.
 10. The method of claim 7, wherein when the first indication signal indicates that the voltage level has not reached the reference voltage level and the second indication signal indicates that the control value has reached the threshold value, the control signal disables the charging circuit.
 11. The method of claim 7, wherein the charging circuit has a Flyback configuration.
 12. An apparatus for controlling a charging circuit, the apparatus comprising: a first detector coupled to the charging circuit, the first detector for detecting a voltage level at a first time and generating a first indication value corresponding to the voltage level at the first time, wherein the voltage level corresponds to an output voltage of the charging circuit; a second detector coupled to the charging circuit, the second detector for detecting the voltage level at a second time after the first time and generating a second indication value corresponding to the voltage level at the second time; and a controller coupled to the charging circuit, the first detector, and the second detector, the controller for receiving the first and second indication values, and further for generating a control signal according to the first and second indication values for turning the charging circuit on and off.
 13. The apparatus of claim 12, wherein each voltage level is a fraction of the output voltage of the charging circuit.
 14. The apparatus of claim 12, wherein the controller generates the control signal to disable the charging circuit when the first indication value is greater than the second indication value.
 15. The apparatus of claim 12, wherein the charging circuit has a Flyback configuration.
 16. A method for controlling a charging circuit, the method comprising: detecting a voltage level at a first time and generating a first indication value corresponding to the voltage level at the first time, the voltage level corresponding to an output voltage of the charging circuit; detecting the voltage level at a second time after the first time and generating a second indication value corresponding to the voltage level at the second time; and generating a control signal according to the first indication value and the second indication value for turning the charging circuit on and off.
 17. The method of claim 16, wherein each voltage level is a fraction of the output voltage of the charging circuit.
 18. The method of claim 16, wherein when the first indication value is greater than the second indication value, the control signal disables the charging circuit.
 19. The method of claim 16, wherein the charging circuit has a Flyback configuration. 